package com.cjkj.equipment.domain;

import com.cjkj.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 预警处理记录对象 t_warn_handle_records
 * 
 * @author cjkj
 * @date 2024-08-30
 */
public class TWarnHandleRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 预警记录ID */
    private Long warnRecordId;

    /** 处理方式：1=已解决；2=稍后提醒； */
    private String handleWay;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date handleTime;

    /** 医院ID */
    private String hospitalId;

    /** 科室ID */
    private String deptId;

    /** 处理人ID */
    private String handleBy;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setWarnRecordId(Long warnRecordId) 
    {
        this.warnRecordId = warnRecordId;
    }

    public Long getWarnRecordId() 
    {
        return warnRecordId;
    }
    public void setHandleWay(String handleWay) 
    {
        this.handleWay = handleWay;
    }

    public String getHandleWay() 
    {
        return handleWay;
    }
    public void setHandleTime(Date handleTime) 
    {
        this.handleTime = handleTime;
    }

    public Date getHandleTime() 
    {
        return handleTime;
    }
    public void setHospitalId(String hospitalId) 
    {
        this.hospitalId = hospitalId;
    }

    public String getHospitalId() 
    {
        return hospitalId;
    }
    public void setDeptId(String deptId) 
    {
        this.deptId = deptId;
    }

    public String getDeptId() 
    {
        return deptId;
    }
    public void setHandleBy(String handleBy) 
    {
        this.handleBy = handleBy;
    }

    public String getHandleBy() 
    {
        return handleBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("warnRecordId", getWarnRecordId())
            .append("handleWay", getHandleWay())
            .append("handleTime", getHandleTime())
            .append("hospitalId", getHospitalId())
            .append("deptId", getDeptId())
            .append("handleBy", getHandleBy())
            .toString();
    }
}
